{loop $data $n $r}
<li><a href="{$r[url]}" target="{$target}"><img src="{thumb($r[thumb], $width, $height)}" width="{$width}" height="{$height}" alt="{$r[title]}" /></a><a href="{$r[url]}" target="{$target}">{str_cut($r[title], $titlelen,'')}</a></li>
{/loop}